package com.wbl.tijianssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wbl.tijianssm.pojo.Cireport;
import com.wbl.tijianssm.pojo.Orders;
import com.wbl.tijianssm.response.ApiRestResponse;
import com.wbl.tijianssm.service.CireportService;
import com.wbl.tijianssm.mapper.CireportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author yy
* @description 针对表【cireport】的数据库操作Service实现
* @createDate 2024-09-18 10:09:07
*/
@Service
public class CireportServiceImpl extends ServiceImpl<CireportMapper, Cireport>
    implements CireportService{

    @Autowired
    CireportMapper cireportMapper;

    @Override
    public ApiRestResponse getReportList(Orders orders) {
        List<Cireport> cireports = cireportMapper.getReportList(orders);
        System.out.println(cireports);
        return ApiRestResponse.success(cireports);
    }
}




